v1.0
property
プロパティをオブジェクトに追加します。
UV クラスタ プロパティおよび頂点カラー プロパティは、完成しているクラスタにのみ追加できます。Geometry.AddCluster
メソッドを参照してください。
注: このコマンドは、出力引数を使用します。 C#
および一部のスクリプト言語(JScript、PerlScript、Python
など)は、リファレンスによって渡される引数をサポートしていません。このため、状況に応じた適切な回避策を実行する必要があります。
スクリプト言語の場合、このコマンドは出力引数を取得するために使用できる ISIVTCollection を戻します。
C# の場合は、XSIApplication.ExecuteCommand
メソッドを使用してこのコマンドを呼び出すことができます。 ExecuteCommand は、出力引数を C# の
System.Object (出力引数の配列を含む)にパック化します(詳細については、「C#
からのコマンドの呼び出し」を参照)。
SIAddProp( PresetObj, [InputObjs], [PropagationType], [PropertyName], [Value] ); |
| パラメータ | タイプ | 詳細 |
|---|---|---|
| PresetObj | 文字列 またはプリセット オブジェクト(「SIGetPreset」を参照) | 「プロパティ プリセット」の 1 つ |
| InputObjs | 文字列 | オブジェクトのリスト
デフォルト値: 現在の選択 |
| PropagationType | siPropagationType | プロパティの伝搬タイプ
デフォルト値: siDefaultPropagation |
| PropertyName | 文字列 | プロパティ名 |
| 値 | XSICollection | 作成されたプロパティを戻します。 |
'Example showing how two custom properties can be added with a single call to
'SIAddProp
SIGetPrim "Null", "FirstNull" , ActiveSceneRoot
SIGetPrim "Null", "SecondNull", ActiveSceneRoot
dim oCustomProperties, oCustomProperty
'Create a custom property under each null
SIAddProp "Custom_parameter_list", "FirstNull,SecondNull", , "Chain_From_Curve", oCustomProperties
'The return value is a collection of the newly created items
for each oCustomProperty in oCustomProperties
SIAddCustomParameter oCustomProperty , _
"nbJoints", siInt2, 10, 1, 1000, 8, 16, 1, 100, "Bones", "Number of Bones"
next
|